<nav>
    <ul class="menu">
        <li><a class="a" href="../index.html">主页</a></li>

        <li>
            <div style="margin-left: 150px"><a class="a" href="javascript:notSupport()">个人中心</a></div>
        </li>

        <li>
            <div><a class="a" href="../login.html">登录</a></div>
            <input type="hidden" value="" id="user_name">
        </li>
        <li>
            <div><a class="a" href="../register.html">注册</a></div>

        </li>
        <li>
            <div><a class="a" id="logout" href="javascript:logout()">退出登录</a></div>

        </li>

    </ul>
</nav>
<script>

    function logout() {
        $.ajax({
            url:URL_PREFIX+"/user/logout",
            type:"get",
            statusCode:{
                200:function () {
                    window.location="index.html";
                }
            }
        })
    }
    function notSupport() {
        alert("当前版本暂不支持个人中心功能！")
    }
</script>
